package server;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Admin {
	private Data data;
	
	public Admin(){
		data=new Data();
	}
	
	public boolean loginConfirm(String username, String password_md5){
		String sql;
		ResultSet rs=null;
		
		sql="select * from admin where username='" + username +"' and password ='"+password_md5+"'";
		rs=data.getResultSet(sql);
		try {
			if(rs.next()){
				return true;
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		
		return false;

	}
}